import request from '@/utils/request'

// 搜索售卖机类型
export const getVmType = params => request.get('/vm-service/vmType/search', { params })

// 图片上传
export const FileUpload = data => request.post('/vm-service/sku/fileUpload', data)

// 新增售货机
export const addVmType = data => request.post('/vm-service/vmType', data)

// 修改售卖机
export const updateVmType = data => request.put(`/vm-service/vmType/${data.typeId}`, data)
